package service.impl;

import dao.ProjectdeclarationDao;
import dao.impl.ProjectdeclarationDaoImpl;
import model.Projectdeclaration;
import service.ProjectdelarationService;

import java.util.List;

/**
 * @author CY
 * @date 2022/12/17 09:47
 **/
public class ProjectdelarationServiceImpl implements ProjectdelarationService {
    ProjectdeclarationDao dao= new ProjectdeclarationDaoImpl();

    @Override
    public int projectedlarationAdd(Projectdeclaration projectdeclaration) {
        return  dao.insert(projectdeclaration);
    }

    @Override
    public List<Projectdeclaration> projectedlarationCheckByt(int tid, int pageIndex, int pageSize) {
        return dao.selectByPassbyTid(tid, pageIndex, pageSize);
    }

    @Override
    public List<Projectdeclaration> projectedlarationCheckByc(int cid, int pageIndex, int pageSize) {
        return dao.selectByPassbyCid(cid, pageIndex, pageSize);
    }

}
